package factory

type SimpleShapeFactory struct{}

func (factory SimpleShapeFactory) CreateShape(shapeType string, param ShapeParam) Shape {
	switch shapeType {
	case "circle":
		return &Circle{radius: param.Radius}
	case "rectangle":
		return &Rectangle{width: param.Width, height: param.Height}
	default:
		return nil
	}
}
